﻿using System;
using System.Collections.ObjectModel;
using StartupSolution.Models;

namespace StartupSolution.ViewModel
{
    public class TimelineDataViewModel
    {
        public string DateTimeTitle { get; set; }

        public ObservableCollection<DateTimeData> DateTimeEntries { get; set; }

        //TODO: Add custom logic which will generate the data for the xamTimeline control.

        public TimelineDataViewModel()
        {
            DateTimeTitle = "DateTime Databound Series";
            DateTimeEntries = new ObservableCollection<DateTimeData>
                          {
                              new DateTimeData(new DateTime(1989, 1, 1), new TimeSpan(200,0,0,0), "DateTimeEvent 1", "This is a sample event."),
                              new DateTimeData(new DateTime(1990, 2, 2), new TimeSpan(200,0,0,0), "DateTimeEvent 2", "This is a sample event."),
                              new DateTimeData(new DateTime(1991, 3, 2), new TimeSpan(200,0,0,0), "DateTimeEvent 3", "This is a sample event."),
                              new DateTimeData(new DateTime(1998, 4, 3), new TimeSpan(200,0,0,0), "DateTimeEvent 4", "This is a sample event."),
                              new DateTimeData(new DateTime(1987, 5, 4), new TimeSpan(200,0,0,0), "DateTimeEvent 5", "This is a sample event."),
                              new DateTimeData(new DateTime(1992, 6, 5), new TimeSpan(200,0,0,0), "DateTimeEvent 6", "This is a sample event."),
                              new DateTimeData(new DateTime(1966, 7, 6), new TimeSpan(200,0,0,0), "DateTimeEvent 7", "This is a sample event."),
                              new DateTimeData(new DateTime(1977, 8, 7), new TimeSpan(200,0,0,0), "DateTimeEvent 8", "This is a sample event."),
                              new DateTimeData(new DateTime(1999, 9, 8), new TimeSpan(200,0,0,0), "DateTimeEvent 9", "This is a sample event."),
                              new DateTimeData(new DateTime(2000, 10, 9), new TimeSpan(200,0,0,0), "DateTimeEvent 10", "This is a sample event."),
                              new DateTimeData(new DateTime(1986, 11, 1), new TimeSpan(200,0,0,0), "DateTimeEvent 11", "This is a sample event."),
                              new DateTimeData(new DateTime(1981, 12, 2), new TimeSpan(200,0,0,0), "DateTimeEvent 12", "This is a sample event."),
                              new DateTimeData(new DateTime(1982, 3, 3), new TimeSpan(200,0,0,0), "DateTimeEvent 13", "This is a sample event."),
                              new DateTimeData(new DateTime(1983, 4, 4), new TimeSpan(200,0,0,0), "DateTimeEvent 14", "This is a sample event."),
                              new DateTimeData(new DateTime(1984, 5, 5), new TimeSpan(200,0,0,0), "DateTimeEvent 15", "This is a sample event."),
                              new DateTimeData(new DateTime(1985, 6, 6), new TimeSpan(200,0,0,0), "DateTimeEvent 16", "This is a sample event."),
                              new DateTimeData(new DateTime(1975, 7, 7), new TimeSpan(200,0,0,0), "DateTimeEvent 17", "This is a sample event."),
                              new DateTimeData(new DateTime(1976, 8, 8), new TimeSpan(200,0,0,0), "DateTimeEvent 18", "This is a sample event."),
                              new DateTimeData(new DateTime(1971, 9, 9), new TimeSpan(200,0,0,0), "DateTimeEvent 19", "This is a sample event."),
                              new DateTimeData(new DateTime(2001, 1, 10), new TimeSpan(200,0,0,0), "DateTimeEvent 20", "This is a sample event.")
                          };
        }
    }
}
